#include <iostream>
#include <memory>
#include <pthread.h>
#include "Log.hpp"
#include "HttpServer.hpp"
using namespace std;

static void usage(const std::string &process)
{
    std::cout << std::endl
              << "Usage: " << process << " port" << std::endl
              << std::endl;
}
int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        usage(argv[0]);
        exit(1);
    }
    uint16_t port = std::stoi(argv[1]);

    std::unique_ptr<HttpServer> svr(new HttpServer(port));
    svr->Start();

    return 0;
}
